home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12490 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  829 b 

  1. Path: inforamp.net!ts13-11
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: revised derived class question
  5. Date: Wed, 20 Mar 96 06:19:23 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4io820$n9v@sam.inforamp.net>
  8. References: <314C5747.19D9@telis.org>
  9. NNTP-Posting-Host: ts34-09.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <314C5747.19D9@telis.org>, Kevin Wilson <kevinw@telis.org> wrote:
  13. >It wants a type conversion from Llist to Stack... Not sure how to do that and 
  14. >I didnt think I had to for a derived class.
  15.  
  16. change the following line in your program...
  17.     ptr = Retreive(1);
  18. to...
  19.     ptr = (Stack *) Retreive(1);
  20. The error should disappear.
  21.  
  22. Agrivar
  23.  
  24.  
  25. Agrivar
  26.  
  27. aka     Randy Charles Morin
  28.     MiddleWorld SoftWare
  29.     Canada: 1-800-363-3780
  30.     Other:    905-279-2087
  31.